package com.chengdu.his.care.service.impl;

import com.chengdu.his.care.mapper.PatientsDetailMapper;
import com.chengdu.his.care.service.PatientsDetailService;
import com.chengdu.his.pojo.PatientsDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PatientsDetailServiceImpl implements PatientsDetailService {

    @Resource
    private PatientsDetailMapper patientsDetailMapper;
    @Override
    public int insertPatientsDetail(PatientsDetail patientsDetail) throws Exception {
        return patientsDetailMapper.insertPatientsDetail(patientsDetail);
    }

    @Override
    public PatientsDetail findById(int id) throws Exception {
        return patientsDetailMapper.findById(id);
    }
}
